# coding: utf-8

from bs4 import BeautifulSoup
import requests

url = r"https://www.baidu.com/"
html = requests.get(url).content
soup = BeautifulSoup(html, 'html.parser')
all = soup.find_all()
all_text_list = []
for i in all:
    text = i.text
    text = text.replace('\xa9', "")
    all_text_list.append(text)
print("find_all()可以得到所有的标签")
print(all_text_list)